<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'AdminUpdate.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" href="jquery-validation/screen.css" />
	<script type="text/javascript" src="js/jquery-1.9.1.js"></script>	
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="js/WarnMessages.js"></script>
	<link href="css/css.css" rel="stylesheet" type="text/css" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	
	
  </head>
  <script type="text/javascript">
$(function(){
	
	$("#myform").validate({
	rules:{
		'admin.account':{
			required:true,
			minlength:2
			},
		'admin.password':{
			required:true,
			minlength:2
			},
		twoPsd:{
			required:true,
			minlength:2,
			equalTo:'#onePsd'	
			}
										
		}
	
	});
	
	
/*****以上是表单验证****/	
	
           
    });

</script>
  
  <body>
  
  <table id="mainpage" width="100%" border="0" cellspacing="0"
		cellpadding="0">
		<tr>
			<td height="30">
			<table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="62" background="images/nav04.gif">						
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	
  <h2 style="text-align: center;">修改管理员信息</h2>
    <br>
    <form id="myform" action="admin/adminresetPwd" method="post">
    <table width="300px" align="center">
    	<tr>
    		<td width="30px">&nbsp;</td>
    	    <td align="right">您的昵称：</td><td> <input type="text" name="admin.account" value="${requestScope.oldAccount2}" readonly="readonly"/></td>
    	</tr>
    	<tr>
    		<td>&nbsp;</td>
    	    <td align="right">新密码：</td><td><input type="password" id="onePsd" name="admin.password"></td>
    	</tr>
    	<tr>
    		<td>&nbsp;</td>
    	    <td align="right">确认密码：</td><td><input type="password" id ="twoPsd" name="twoPsd"></td>
    	</tr>
   
    	<tr>
    		<td>&nbsp;</td>
    		<td>&nbsp;</td>
    	    <td><input type="submit" value="提交">&nbsp;&nbsp;&nbsp;<input type="reset" value="重置"></td>
    	</tr>
    	
    </table>
    </form>
  </body>
</html>
